<?php

global $myScripts;

$myDocument = &JFactory::getDocument();
$myScripts['myIndex.php'] = JArrayHelper::toString($myDocument->getScripts());



?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"\>

<html xmlns="http://www.w3.org/1999/xhtml" 
      xml:lang="<?php echo $this->language; ?>" 
      lang="<?php echo $this->language; ?>" 
>
  <head>
    <title>Wimmie</title>
    <jdoc:include type="head" />  
  </head>

  <body>
    Hallo Wimmie
    <hr>
    <?php
    
    foreach ($myScripts as $key=>$value) 
    {
      echo $key . ' = ' . $value . '<br />';      	
    }
    
    echo $Itemid;
    ?>
  </body>
</html>